<script setup lang="ts">
// Team members data
const teamMembers = [
  {
    name: 'Sarah Johnson',
    title: 'Chief Executive Officer',
    bio: 'Sarah has over 15 years of experience in fintech and payment systems. Prior to founding PayFlow, she led product development at a major payment processor.',
    image: 'https://randomuser.me/api/portraits/women/23.jpg'
  },
  {
    name: 'Michael Chen',
    title: 'Chief Technology Officer',
    bio: 'Michael is a seasoned technology leader with expertise in building scalable and secure payment infrastructure. He previously architected payment systems used by millions.',
    image: 'https://randomuser.me/api/portraits/men/45.jpg'
  },
  {
    name: 'Elena Rodriguez',
    title: 'Chief Operating Officer',
    bio: 'Elena brings extensive operational experience from her time at leading financial institutions. She ensures our systems run smoothly and securely.',
    image: 'https://randomuser.me/api/portraits/women/28.jpg'
  },
  {
    name: 'James Wilson',
    title: 'Chief Security Officer',
    bio: 'James has a background in cybersecurity and compliance. He leads our security team in implementing industry-leading protective measures.',
    image: 'https://randomuser.me/api/portraits/men/32.jpg'
  }
]

// Company timeline
const companyTimeline = [
  {
    year: 2018,
    title: 'Company Founded',
    description: 'PayFlow was founded with a mission to simplify payment processing for businesses of all sizes.'
  },
  {
    year: 2019,
    title: 'First Major Clients',
    description: 'Secured partnerships with several mid-sized e-commerce businesses, processing over $10M in transactions.'
  },
  {
    year: 2020,
    title: 'International Expansion',
    description: 'Expanded services to Europe and Asia, supporting multiple currencies and payment methods.'
  },
  {
    year: 2021,
    title: 'Series A Funding',
    description: 'Raised $25M in Series A funding to accelerate product development and market expansion.'
  },
  {
    year: 2022,
    title: 'Advanced Fraud Protection',
    description: 'Launched our AI-powered fraud detection system, reducing fraud rates by 75% for our customers.'
  },
  {
    year: 2023,
    title: 'Enterprise Solutions',
    description: 'Introduced enterprise-grade payment solutions for large businesses with complex requirements.'
  },
  {
    year: 2024,
    title: 'Series B Funding',
    description: 'Secured $50M in Series B funding to further enhance our platform and expand globally.'
  }
]

// Values
const companyValues = [
  {
    title: 'Security First',
    description: 'We prioritize the security of our customers\' data and transactions above all else.',
    icon: '🔒'
  },
  {
    title: 'Transparency',
    description: 'We believe in clear communication and transparent pricing without hidden fees.',
    icon: '🔍'
  },
  {
    title: 'Innovation',
    description: 'We continuously evolve our technology to meet the changing needs of businesses.',
    icon: '💡'
  },
  {
    title: 'Reliability',
    description: 'Our platform is built for 99.99% uptime because payments can\'t wait.',
    icon: '⚙️'
  }
]

// Office locations
const officeLocations = [
  {
    city: 'San Francisco',
    address: '123 Tech Avenue, San Francisco, CA 94107',
    phone: '+1 (415) 555-1234',
    email: 'sf@payflow.example'
  },
  {
    city: 'New York',
    address: '456 Finance Street, New York, NY 10004',
    phone: '+1 (212) 555-5678',
    email: 'nyc@payflow.example'
  },
  {
    city: 'London',
    address: '789 Fintech Road, London, EC2A 4PQ, UK',
    phone: '+44 20 5555 9012',
    email: 'london@payflow.example'
  },
  {
    city: 'Singapore',
    address: '101 Payment Boulevard, Singapore 018956',
    phone: '+65 5555 3456',
    email: 'singapore@payflow.example'
  }
]
</script>

<template>
  <div class="about-page">
    <!-- About Hero Section -->
    <section class="about-hero">
      <div class="container">
        <div class="about-hero-content">
          <h1>About PayFlow</h1>
          <p>Building the future of payment processing since 2018</p>
        </div>
      </div>
    </section>
    
    <!-- Company Overview -->
    <section class="company-overview section">
      <div class="container">
        <div class="overview-grid">
          <div class="overview-content">
            <h2>Our Story</h2>
            <p>PayFlow was founded in 2018 with a simple mission: to make payment processing seamless, secure, and accessible for businesses of all sizes.</p>
            <p>What started as a small team of payment experts and developers has grown into a global company serving thousands of businesses and processing billions in transactions annually.</p>
            <p>We believe that payments should be simple for businesses to implement and invisible to their customers. Our platform is built on principles of security, reliability, and developer-friendliness.</p>
          </div>
          <div class="overview-stats">
            <div class="stat-card">
              <div class="stat-value">2018</div>
              <div class="stat-label">Founded</div>
            </div>
            <div class="stat-card">
              <div class="stat-value">200+</div>
              <div class="stat-label">Team Members</div>
            </div>
            <div class="stat-card">
              <div class="stat-value">50+</div>
              <div class="stat-label">Countries</div>
            </div>
            <div class="stat-card">
              <div class="stat-value">$10B+</div>
              <div class="stat-label">Processed Annually</div>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Company Values -->
    <section class="company-values section">
      <div class="container">
        <h2 class="section-title">Our Values</h2>
        <div class="values-grid">
          <div v-for="value in companyValues" :key="value.title" class="value-card">
            <div class="value-icon">{{ value.icon }}</div>
            <h3>{{ value.title }}</h3>
            <p>{{ value.description }}</p>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Leadership Team -->
    <section class="leadership-team section">
      <div class="container">
        <h2 class="section-title">Leadership Team</h2>
        <div class="team-grid">
          <div v-for="member in teamMembers" :key="member.name" class="team-member">
            <div class="member-image">
              <img :src="member.image" :alt="member.name">
            </div>
            <div class="member-info">
              <h3>{{ member.name }}</h3>
              <p class="member-title">{{ member.title }}</p>
              <p class="member-bio">{{ member.bio }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Company Timeline -->
    <section class="company-timeline section">
      <div class="container">
        <h2 class="section-title">Our Journey</h2>
        <div class="timeline">
          <div v-for="(milestone, index) in companyTimeline" :key="index" class="timeline-item">
            <div class="timeline-year">{{ milestone.year }}</div>
            <div class="timeline-content">
              <h3>{{ milestone.title }}</h3>
              <p>{{ milestone.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Office Locations -->
    <section class="office-locations section">
      <div class="container">
        <h2 class="section-title">Our Offices</h2>
        <div class="locations-grid">
          <div v-for="office in officeLocations" :key="office.city" class="location-card">
            <h3>{{ office.city }}</h3>
            <p class="location-address">{{ office.address }}</p>
            <p class="location-contact">
              <span>{{ office.phone }}</span>
              <span>{{ office.email }}</span>
            </p>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Join Us CTA -->
    <section class="join-us-cta section">
      <div class="container">
        <div class="cta-box">
          <h2>Join Our Team</h2>
          <p>We're always looking for talented individuals who are passionate about building the future of payments.</p>
          <button class="btn btn-primary">View Open Positions</button>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
/* About Hero */
.about-hero {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  color: white;
  text-align: center;
}

.about-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.about-hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--neutral-200);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--space-10);
  font-size: 2rem;
  color: var(--text-primary);
}

/* Company Overview */
.overview-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.overview-content h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-6);
  color: var(--primary-800);
}

.overview-content p {
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.stat-card {
  background-color: var(--neutral-50);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--primary-700);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Company Values */
.company-values {
  background-color: var(--neutral-50);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.value-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--space-6);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--primary-700);
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Leadership Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.member-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-info {
  padding: var(--space-4) var(--space-4) var(--space-6);
}

.member-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.member-title {
  font-size: 0.9rem;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.member-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Company Timeline */
.company-timeline {
  background-color: var(--neutral-50);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 2px;
  background-color: var(--primary-300);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
  padding-left: 160px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-600);
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-500);
  z-index: 1;
}

.timeline-content {
  background-color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* Office Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.location-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--space-6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--primary-700);
}

.location-address {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Join Us CTA */
.join-us-cta {
  background-color: white;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: white;
  text-align: center;
  padding: var(--space-10);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
  margin-bottom: var(--space-4);
  font-size: 2rem;
}

.cta-box p {
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--neutral-200);
}

.cta-box .btn {
  padding: var(--space-3) var(--space-8);
  font-size: 1.1rem;
  background-color: white;
  color: var(--primary-700);
}

.cta-box .btn:hover {
  background-color: var(--neutral-100);
}

/* Responsive */
@media (min-width: 768px) {
  .overview-grid {
    flex-direction: row;
  }
  
  .overview-content {
    flex: 3;
  }
  
  .overview-stats {
    flex: 2;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  .timeline-item:nth-child(odd) {
    padding-right: 50%;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 50%;
    text-align: left;
  }
  
  .timeline-year {
    left: auto;
    right: auto;
    top: 0;
    width: auto;
    text-align: center;
  }
  
  .timeline-item:nth-child(odd) .timeline-year {
    right: 55%;
  }
  
  .timeline-item:nth-child(even) .timeline-year {
    left: 55%;
  }
  
  .timeline-year::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .overview-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
</style>